package ronglei.day01.demo02;
//定义一个方法是否相同
public class Practice {
    public static void main(String[] args) {
        boolean met = panduan(3,3);
        System.out.println(met);

        String hah = "{)";
        String l= hah.substring(0,1);
//        System.out.println(l);
        String  r = hah.substring(1,2);
        System.out.println(r);
    }
    // return 要写返回类型
    public static boolean panduan ( int a,int b){
       /* if(a==b){
            return true;
        }else{
            return false;
        }*/
        return a==b;
    }
}
